From: Mark Oteiza Date: Mon, 20 Mar 2017 00:20:45 +0000 (-0400) Subject: * lisp/button.el (forward-button): Use user-error instead. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~21^2~1549 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=715962e5c416b62c1deea0bec16c88ae9c63674e;p=emacs.git * lisp/button.el (forward-button): Use user-error instead. --- diff --git a/lisp/button.el b/lisp/button.el index c39e4f97c13..b04bc283e40 100644 --- a/lisp/button.el +++ b/lisp/button.el @@ -493,7 +493,7 @@ Returns the button found." (unless (button-get button 'skip) (setq n (1- n))))))) (if (null button) - (error (if wrap "No buttons!" "No more buttons")) + (user-error (if wrap "No buttons!" "No more buttons")) (let ((msg (and display-message (button-get button 'help-echo)))) (when msg (message "%s" msg)))